<script setup>
import {ref} from "vue";

let info = ref("Hello, Vue!")

</script>

<script>
export default {
  emits:["sendInfo"]
}
</script>

<template>
<button v-on:click="$emit('sendInfo', info)">发送</button>
</template>

<style scoped>

</style>